a = b = c =[1, 2, 3, 4]

l = []
for i in a:
    for s in b:
        for g in c:
            if i != s and s != g and i != g:
                w = f"{i}{s}{g}"
                l.append(w)
print(f"一共有{len(l)}个结果，分别是{l}")

